/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-14 12:31:39
 * @LastEditors: 贺楠 1071780426@qq.com
 * @LastEditTime: 2024-07-19 11:47:23
 * @FilePath: \mould\src\components\BehaViorManage\workYear\regexDetail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default {
    //基础信息
    formObj: [{
            input: true, //是input
            label: "设备名称及编号", //字段
            prop: "deviceName", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            placeholder:"请选择",
            rules: [{
                required: true,
                message: '设备名称不能为空'
            }], //验证
        },
        {
            selects: true, //是input
            label: "计量管理方式", //字段
            prop: "measuringControl", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择计量管理方式'
            }], //验证
            options:[{
                label:"Ⅰ",
                value:"Ⅰ",
            },{
                label:"Ⅱ-1",
                value:"Ⅱ-1",
            },{
                label:"Ⅱ-2",
                value:"Ⅱ-2",
            },{
                label:"Ⅱ-3",
                value:"Ⅱ-3",
            },{
                label:"Ⅲ",
                value:"Ⅲ",
            }]
        },
        {
            input: true, //是input
            label: "校准单位", //字段
            prop: "calibration", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: false,
                message: '出厂日期不能为空'
            }], //验证
        },
        {
            selects: true, //是input
            label: "证书类型", //字段
            prop: "certificateType", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择证书类型'
            }], //验证
            options:[{
                label:"检定证书",
                value:"检定证书",
            },{
                label:"校准证书",
                value:"校准证书",
            },{
                label:"测试报告",
                value:"测试报告",
            },{
                label:"其他",
                value:"其他",
            }]
        },
        {
            input: true, //是input
            label: "证书编号", //字段
            prop: "certificateCode", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: false,
                message: '证书编号不能为空'
            }], //验证
        },
       
        {
            datePicker: true, //是input
            label: "校准日期", //字段
            prop: "calibrationDates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '校准日期不能为空'
            }], //验证
        },
        {
            datePicker: true, //是input
            label: "有限日期", //字段
            prop: "effectiveDates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '有限日期不能为空'
            }], //验证
        },
       
        {
            selects: true, //是input
            label: "检定校准结果", //字段
            prop: "calibrationResult", //字段名
            width: 12 ,//参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: false,
                message: '请选择检定校准结果'
            }], //验证
            options:[
            {
                label:"合格",
                value:"合格",
            },{
                label:"符合规范要求",
                value:"符合规范要求",
            }]
        },
       
  
               {
            label: "证书文件上传", //字段
            prop: "picture", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            upload: true,
            uploadSelect: true,
            uploadObj: {
                fileType: "2001",
                limit: 8, //上传长度限制
                hideUpload: false, //是否隐藏上传框
            },
            rules: [{
                required: false,
                message: '证书文件上传不能为空'
            }] //验证
        },
        {
            textarea: true, //是input
            label: "备注", //字段
            prop: "remark", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: false,
                message: '备注不能为空'
            }] //验证
        },
     
    ],

}